package com.suedawn.bookmanagesystem.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat; // <-- 导入这个包
import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class BookQueryDTO extends PageQueryDTO {

    @ApiModelProperty("书籍标题")
    private String title;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("出版社")
    private String publisher;

    @ApiModelProperty("ISBN编号")
    private String isbn;

    @ApiModelProperty("出版日期范围-开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd") // <-- 添加这个注解
    private Date publishDateStart;

    @ApiModelProperty("出版日期范围-结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd") // <-- 添加这个注解
    private Date publishDateEnd;

    @ApiModelProperty("分类ID")
    private Integer categoryId;

    @ApiModelProperty("语言")
    private String language;

}